package cn.edu.zjut.mina.xcmahjong;

import java.util.ArrayList;
import java.util.List;

import cn.edu.zjut.mina.interf.ICardBean;

public class XcmjPGArea {
	private String userId;
	private List<ICardBean> pArea = new ArrayList<ICardBean>();
	private List<ICardBean> gArea = new ArrayList<ICardBean>();

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public List<ICardBean> getpArea() {
		return pArea;
	}

	public void setpArea(List<ICardBean> pArea) {
		this.pArea = pArea;
	}

	public List<ICardBean> getgArea() {
		return gArea;
	}

	public void setgArea(List<ICardBean> gArea) {
		this.gArea = gArea;
	}

	public void addPengCard(ICardBean cardBean) {
		pArea.add(cardBean);
	}

	public void addGangCard(ICardBean cardBean) {
		gArea.add(cardBean);
	}

	public void clear() {
		pArea.clear();
		gArea.clear();
	}



	public void showPGArea() {
		System.out.print("碰杠区    ");
		if (!pArea.isEmpty()) {
			System.out.print("碰:");
			for (int i = 0; i < pArea.size(); i++) {
				System.out.print(pArea.get(i) + " ");
			}
		}

		if (!gArea.isEmpty()) {
			System.out.print("杠:");
			for (int i = 0; i < gArea.size(); i++) {
				System.out.print(gArea.get(i) + " ");
			}
		}
		System.out.println("");
	}
}
